<template>
  <div class="nav-container">
    <ul>
      <li><router-link :to="{name:'index'}">首页</router-link></li>
      <li><router-link :to="{name:'user'}">用户管理</router-link></li>
      <li><router-link :to="{name:'goods', params:{name:'apple'}}">商品管理</router-link></li>
    </ul>
  </div>
</template>

<script>
  export default {
    name: "NavList"
  }
</script>

<style scoped>
  .nav-container{
    width:100%;
    height: 50px;
    background-color: #f1f1f1;
    line-height: 50px;
  }
  ul{
    list-style: none;
    text-align: center;
  }
  li{
    margin: 0 20px;
    float: left;
  }

</style>
